<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=request.getContextPath()%>/">
    <title>艺谷（深圳）后台管理系统</title>
    <link rel="stylesheet" type="text/css" href="Styles/base.css" />
    <link rel="stylesheet" type="text/css" href="Styles/admin-all.css" />
    <link rel="stylesheet" type="text/css" href="Styles/bootstrap.min.css" />
    <script type="text/javascript" src="Scripts/jquery-1.7.2.js"></script>
    <script type="text/javascript" src="Scripts/jquery.spritely-0.6.js"></script>
    <script type="text/javascript" src="Scripts/chur.min.js"></script>
    <link rel="stylesheet" type="text/css" href="Styles/login.css" />
    <script type="text/javascript">
    $(function () {
        $('.login').click(function () {
            if ($('#uid').val() == "" || $('#pwd').val() == "" || $('#code').val() == "") { $('.tip').html('工号或密码不可为空！') }
            else {
                $.post("check/login",{
 //               	empNum:$('#uid').val(),
//                	empPassword:$('#pwd').val()
                	username:$('#uid').val(),
                	password:$('#pwd').val(),
                	yzms:$('#yzm').val()
                },function(data){
                	if(data=="sucess"){
                		location.href = 'check/index'
                	}else if(data=="error"){
                		$('.tip').html('验证码错误')
                	}else{
                		$('.tip').html('工号或密码错误！')
                	}
                })
            }
        })
    })
    </script>
</head>
<body>
    <div id="clouds" class="stage"></div>
    <div class="loginmain">
    </div>

    <div class="row-fluid">
        <h1>艺谷（深圳）后台管理系统</h1>
        <p>
            <label>工&nbsp;&nbsp;&nbsp;号：<input type="text" id="uid" /></label>
        </p>
        <p>
            <label>密&nbsp;&nbsp;&nbsp;码：<input type="password" id="pwd" /></label>
        </p>
        <p> <label>验证码&nbsp;：
      <input  type="text" id="yzm" placeholder="验证码"  /></label></p>
	<img src="check/createImg.do" onclick="this.setAttribute('src','check/createImg.do?x='+Math.random())" alt="验证码" title="点击更换" width="100" height="32" class="passcode" style="height: 43px; cursor: pointer;" />
       
        <p class="tip">&nbsp;</p>
        <hr />
        <input type="button" value=" 登 录 " class="btn btn-primary btn-large login" />
        &nbsp;&nbsp;&nbsp;<input type="button" value=" 取 消 " class="btn btn-large" />
        
    </div>
</body>
</html>



